package org.infodavid.common.registry.impl;

import java.io.Serializable;

import org.infodavid.common.registry.IRegistryEvent;
import org.infodavid.common.registry.IRegistryListener;

/**
 * The Class RegistryAdapterImpl.
 * @param <K> the type of the keys
 * @param <E> the type of the elements
 */
public class RegistryAdapterImpl<K extends Serializable,E extends Serializable> implements
    IRegistryListener<K,E> {

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.registry.IRegistryListener#postCleared(org.infodavid.common.registry.
	 * IRegistryEvent)
	 */
	public void postCleared(final IRegistryEvent<K,E> evt) {}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.registry.IRegistryListener#postRegister(org.infodavid.common.registry.
	 * IRegistryEvent)
	 */
	public void postRegister(final IRegistryEvent<K,E> evt) {}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.registry.IRegistryListener#postUnregister(org.infodavid.common.registry.
	 * IRegistryEvent)
	 */
	public void postUnregister(final IRegistryEvent<K,E> evt) {}

	/*
	 * (non-Javadoc)
	 * @see
	 * org.infodavid.common.registry.IRegistryListener#preCleared(org.infodavid.common.registry.IRegistryEvent
	 * )
	 */
	public void preCleared(final IRegistryEvent<K,E> evt) {}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.registry.IRegistryListener#preRegister(org.infodavid.common.registry.
	 * IRegistryEvent)
	 */
	public void preRegister(final IRegistryEvent<K,E> evt) {}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.registry.IRegistryListener#preUnregister(org.infodavid.common.registry.
	 * IRegistryEvent)
	 */
	public void preUnregister(final IRegistryEvent<K,E> evt) {}

	/*
	 * (non-Javadoc)
	 * @see
	 * org.infodavid.common.registry.IRegistryListener#undefined(org.infodavid.common.registry.IRegistryEvent
	 * )
	 */
	public E undefined(final IRegistryEvent<K,E> evt) {
		return null;
	}
}
